package com.lwp.junit.demo.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MyBsServiceImpl implements MyBsService{

    @Autowired
    private Test1Service test1Service;
    @Autowired
    private Test2Service test2Service;

    @Override
    public String m1(String name) {
        System.out.println("MyBsServiceImpl m1 ...");
        test1Service.m1(name);
        return name;
    }

    @Override
    public String m2(String name) {
        System.out.println("MyBsServiceImpl m2 ...");
        return name;
    }
}
